<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 浅拷贝 
        var obj = {
            name: 'zs',
            sister: {
                name: 'lisi'
            }
        }

        var obj1 = { ...obj }
        obj1.sister.name = 'lisi1'
        console.log(obj.sister.name);
    </script>
</body>

</html>